package questão2;

import static org.junit.Assert.*;

import org.junit.Test;

public class NotaFiscalTest {

	@Test
	public void test() {
		NotaFiscal nf = new NotaFiscal("Maria", "Rua Silveira", "CONSULTORIA");
		
		double valor = nf.calculaDesconto(nf);
		assertEquals(25, valor, 0.00000001);
		
		
	}
	@Test
	public void test1() {
		NotaFiscal nf = new NotaFiscal("Maria", "Rua Silveira", "TREINAMENTO");
		
		double valor = nf.calculaDesconto(nf);
		assertEquals(15, valor, 0.00000001);
		
		
	}
	
	@Test
	public void test2() {
		NotaFiscal nf = new NotaFiscal("Maria", "Rua Silveira", "OUTRO");
		
		double valor = nf.calculaDesconto(nf);
		assertEquals(6,valor, 0.000001);
		
		
	}
	

}
